﻿@model ejunkey.Models.Product

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Product</legend>

        @Html.HiddenFor(model => model.ProductId)

        <div class="editor-label">
            @Html.LabelFor(model => model.ProductName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ProductName)
            @Html.ValidationMessageFor(model => model.ProductName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Details)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Details)
            @Html.ValidationMessageFor(model => model.Details)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DetailsUrl)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DetailsUrl)
            @Html.ValidationMessageFor(model => model.DetailsUrl)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DemoUrl)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DemoUrl)
            @Html.ValidationMessageFor(model => model.DemoUrl)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Tagline)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Tagline)
            @Html.ValidationMessageFor(model => model.Tagline)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ShortDescription)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ShortDescription)
            @Html.ValidationMessageFor(model => model.ShortDescription)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Price)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Price)
            @Html.ValidationMessageFor(model => model.Price)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CurrencyId, "Currency")
        </div>
        <div class="editor-field">
            @Html.DropDownList("CurrencyId", String.Empty)
            @Html.ValidationMessageFor(model => model.CurrencyId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ImageFilePath)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ImageFilePath)
            @Html.ValidationMessageFor(model => model.ImageFilePath)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Category1)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Category1)
            @Html.ValidationMessageFor(model => model.Category1)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Category2)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Category2)
            @Html.ValidationMessageFor(model => model.Category2)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Category3)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Category3)
            @Html.ValidationMessageFor(model => model.Category3)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Category4)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Category4)
            @Html.ValidationMessageFor(model => model.Category4)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Category5)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Category5)
            @Html.ValidationMessageFor(model => model.Category5)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.UserId, "aspnet_Users")
        </div>
        <div class="editor-field">
            @Html.DropDownList("UserId", String.Empty)
            @Html.ValidationMessageFor(model => model.UserId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsMarketPalce)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsMarketPalce)
            @Html.ValidationMessageFor(model => model.IsMarketPalce)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Expiration)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Expiration)
            @Html.ValidationMessageFor(model => model.Expiration)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Attempts)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Attempts)
            @Html.ValidationMessageFor(model => model.Attempts)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Hours)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Hours)
            @Html.ValidationMessageFor(model => model.Hours)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsSingleFile)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsSingleFile)
            @Html.ValidationMessageFor(model => model.IsSingleFile)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FilePathEncryption)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FilePathEncryption)
            @Html.ValidationMessageFor(model => model.FilePathEncryption)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RemoteUrlEncryption)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RemoteUrlEncryption)
            @Html.ValidationMessageFor(model => model.RemoteUrlEncryption)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsRedirection)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsRedirection)
            @Html.ValidationMessageFor(model => model.IsRedirection)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RedirectionUrlEncryption)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RedirectionUrlEncryption)
            @Html.ValidationMessageFor(model => model.RedirectionUrlEncryption)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsStoreCode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsStoreCode)
            @Html.ValidationMessageFor(model => model.IsStoreCode)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PINOrRegistrationCodeEncryption)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PINOrRegistrationCodeEncryption)
            @Html.ValidationMessageFor(model => model.PINOrRegistrationCodeEncryption)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsGenCode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsGenCode)
            @Html.ValidationMessageFor(model => model.IsGenCode)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CodeGenUrlEncryption)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CodeGenUrlEncryption)
            @Html.ValidationMessageFor(model => model.CodeGenUrlEncryption)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsAffectOrtherProducts)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsAffectOrtherProducts)
            @Html.ValidationMessageFor(model => model.IsAffectOrtherProducts)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.OtherProductFileId, "OtherProductsFile")
        </div>
        <div class="editor-field">
            @Html.DropDownList("OtherProductFileId", String.Empty)
            @Html.ValidationMessageFor(model => model.OtherProductFileId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsInventoryControl)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsInventoryControl)
            @Html.ValidationMessageFor(model => model.IsInventoryControl)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsTaxVAT)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsTaxVAT)
            @Html.ValidationMessageFor(model => model.IsTaxVAT)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsShipOrBuyerAddress)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsShipOrBuyerAddress)
            @Html.ValidationMessageFor(model => model.IsShipOrBuyerAddress)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Weight)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Weight)
            @Html.ValidationMessageFor(model => model.Weight)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PackageId, "Package")
        </div>
        <div class="editor-field">
            @Html.DropDownList("PackageId", String.Empty)
            @Html.ValidationMessageFor(model => model.PackageId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PackageCapacity)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PackageCapacity)
            @Html.ValidationMessageFor(model => model.PackageCapacity)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsEditQuantity)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsEditQuantity)
            @Html.ValidationMessageFor(model => model.IsEditQuantity)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsEditPrice)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsEditPrice)
            @Html.ValidationMessageFor(model => model.IsEditPrice)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MinPrice)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MinPrice)
            @Html.ValidationMessageFor(model => model.MinPrice)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.SuggestPrince)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SuggestPrince)
            @Html.ValidationMessageFor(model => model.SuggestPrince)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.LimitProducts)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.LimitProducts)
            @Html.ValidationMessageFor(model => model.LimitProducts)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsVariants)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsVariants)
            @Html.ValidationMessageFor(model => model.IsVariants)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.VariantOption1Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.VariantOption1Name)
            @Html.ValidationMessageFor(model => model.VariantOption1Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.VariantOption2Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.VariantOption2Name)
            @Html.ValidationMessageFor(model => model.VariantOption2Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.VariantOption3Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.VariantOption3Name)
            @Html.ValidationMessageFor(model => model.VariantOption3Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.VariantOptionsValue)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.VariantOptionsValue)
            @Html.ValidationMessageFor(model => model.VariantOptionsValue)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsVariations)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsVariations)
            @Html.ValidationMessageFor(model => model.IsVariations)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.VariationOption1Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.VariationOption1Name)
            @Html.ValidationMessageFor(model => model.VariationOption1Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.VariationOption2Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.VariationOption2Name)
            @Html.ValidationMessageFor(model => model.VariationOption2Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.VariationOption3Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.VariationOption3Name)
            @Html.ValidationMessageFor(model => model.VariationOption3Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.VariationOption1Value)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.VariationOption1Value)
            @Html.ValidationMessageFor(model => model.VariationOption1Value)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.VariationOption2Value)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.VariationOption2Value)
            @Html.ValidationMessageFor(model => model.VariationOption2Value)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.VariationOption3Value)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.VariationOption3Value)
            @Html.ValidationMessageFor(model => model.VariationOption3Value)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsSendTransaction)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsSendTransaction)
            @Html.ValidationMessageFor(model => model.IsSendTransaction)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PaymentUrlEncryption)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PaymentUrlEncryption)
            @Html.ValidationMessageFor(model => model.PaymentUrlEncryption)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EmailSubject)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EmailSubject)
            @Html.ValidationMessageFor(model => model.EmailSubject)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EmailMessage)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EmailMessage)
            @Html.ValidationMessageFor(model => model.EmailMessage)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsReceiveCopy)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsReceiveCopy)
            @Html.ValidationMessageFor(model => model.IsReceiveCopy)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsEnableTemplateEmail)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsEnableTemplateEmail)
            @Html.ValidationMessageFor(model => model.IsEnableTemplateEmail)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ItemNumber)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ItemNumber)
            @Html.ValidationMessageFor(model => model.ItemNumber)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MessageAfterPayment)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MessageAfterPayment)
            @Html.ValidationMessageFor(model => model.MessageAfterPayment)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PromoteOtherProductId, "PromoteOtherProduct")
        </div>
        <div class="editor-field">
            @Html.DropDownList("PromoteOtherProductId", String.Empty)
            @Html.ValidationMessageFor(model => model.PromoteOtherProductId)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
